import request from '@/router/request'

export function getWeather(city) {
  return request({
    url: "/restapi/v3/weather/weatherInfo",
    method: "get",
    params: {
      key: "2052a1669a3d46f06dbc934c4c0101cd",
      city: city,
      extensions: "base",
      output: "JSON"
    }
  })
}